package com.zyplayer.dubbo.controller;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/nacos")
public class NacosController {

	@NacosValue(value = "${hello:}", autoRefreshed = true)
	private String hello;
	
	@RequestMapping("/hello")
	public String hello() {
		return "hello:" + hello;
	}
	
}
